map

inline fun <T> map(transform: (R) -> T): Either<L, T>

Maps value of this Right using transform.

Return

Right mapped using transform or this object if this is a Left.

Parameters

transform

Function transforming a Right.